<?php
namespace common\service;
use common\models\QueueList;

class QueueListService extends BaseService{
	//加入队列
	public static function addQueue( $queue_name,$data = []){
		$model = new QueueList();
		$model->queue_name = $queue_name;
		$model->data = json_encode( $data );
		$model->status = -1;
		$model->created_time = $model->updated_time = time();
		return $model->save( 0 );
	}

}